import React from 'react';

import Constants from '../../common/Constants';
import CommonSendFetchAction from '../common/CommonSendFetchAction';

export default class PostRequestMyPushPostsNumAction extends CommonSendFetchAction {
  constructor(props) {
    super(props);

    this.moduleType = Constants.MODULE_TYPE.POST;
    this.name = "PostRequestMyPushPostsNumAction";
  }

  _dealFinishSucess(data, response) {
    let detail = "";
    if(data && data.detail != undefined) {
      detail = data.detail;
    }
    this.caller.setState({
      viewStatus:response.status,
      isResponeUpdate:true,
      statusText:detail,
      myVipCardPostNum:data,
      updateAction:{name:this.name}
    })
  }
}
